﻿using Microsoft.AspNetCore.Authentication.OAuth;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using phminarm.Infrastructure.Api;

namespace phminarm.webapi.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class HomeController : BaseController
    {
        private readonly ILogger<HomeController> _logger;

        public HomeController(ILogger<HomeController> logger)
        {
            _logger = logger;
        }

        [HttpGet]
        public IActionResult Index()
        {
            return toResponse("this is homepage");
        }

        [HttpGet]
        public string Get()
        {
            return "get";
        }
    }
}
